﻿<UserControl x:Class="BTM_Client_Application.DeviceInStationInfo"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="30" MinWidth="70" Height="27" HorizontalAlignment="Stretch">

    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/Styles/MyResources.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>

    <ListViewItem HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch">
        <Grid Name="ContentGrid" HorizontalAlignment="Stretch">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="22"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <Image Name="DeviceImage" VerticalAlignment="Center" Width="16" Height="16" Margin="3,0,3,0" Source="{StaticResource ResourceKey=DeviceImage}" Grid.Column="0"/>
            <Label Name="DeviceNameBox" Content="Device" Margin="0,0,4,0" Grid.Column="1" VerticalAlignment="Center"/>
            <Label Name="ErrorsCountBox" Content="0" HorizontalAlignment="Right" Grid.Column="2" VerticalAlignment="Center"/>
            <StackPanel HorizontalAlignment="Right" Grid.Column="3" Orientation="Horizontal" Margin="0,0,4,0">
                <TextBlock Text="(" VerticalAlignment="Center"/>
                <TextBlock Name="AllErrorsCountBox" Text="0" VerticalAlignment="Center"/>
                <TextBlock Text=")" VerticalAlignment="Center"/>
            </StackPanel>
            
        </Grid>
    </ListViewItem>
</UserControl>
